<script>
var p1={name:'Jim',age:19};
var p2=p1;
p2.name='Tom';
console.log(p1);//输出结果：Object{name:'Jim',age:19}
console.log(p2);//输出结果：Object{name:'Jim',age:19}
console.log(p1==p2);//输出结果:true
</script>
<script>
var p1={name:'Jim',subject:{name:['HTML','CSS']}};
var p2=deepCopy(p1);
p2.subject.name[0]='JavaScript';
console.log(p1.subject.name[0]);//输出结果：HTML
console.log(p2.subject.name[0]);//输出结果：CSS
console.log(p1==p2);//输出结果：false
</script>